﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TS.Bussiness;

namespace Tranco
{
    public partial class Maintenance : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ConfigurationBussiness bu = new ConfigurationBussiness();

            var config = bu.GetConfig();

            if(config.IsClosed==0)
                Response.Redirect("~/Default.aspx");
            else
            {
                lblComment.Text = config.ClosedComment;
            }
        }
    }
}